'use strict';

function collect_min_number(collection) {
  let result = [];
  let arr=collection.sort((a,b)=>a-b);
  result.push(arr[0]);
  
  console.log(result);
  return result;
  //在这里写入代码
}
collect_min_number([1, 8, 9, 21, 5]);

module.exports = collect_min_number;

